package com.eric.pageobject;

import org.openqa.selenium.WebDriver;

public class MainPage extends Page {

	public MainPage(WebDriver driver) {
		super(driver);
	}

	public boolean isOpen() {
		boolean result;
		if (driver.getTitle().contains("Banana Scrum")
				&& driver.getPageSource().contains("Logout")) {
			result = true;
		} else {
			result = false;
		}
		return result;
	}
}
